package com.example.safeassistan.home.model;

import java.util.List;

public class InvestigationModel {


    /**
     * success : true
     * message : 操作成功！
     * code : 0
     * result : [{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"0","itemDesc":null,"children":[{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDescList":["发生火灾时，应立即使用就近消防器材进行灭火，组织人员疏散","如有必要，及时拨打119报警电话"],"itemDesc":"定期检测，严禁超负荷使用。","children":null,"id":"1400725027241713665"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"制定岗位操作规程，定期组织培训。","children":null,"id":"1400725028067991553"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"立即切断电源，检查伤员全身情况，心跳停止时进行心肺复苏。同时拨打120急救电话，并送往医院。","children":null,"id":"1400725028957184001"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"按要求穿戴劳动防护用品。","children":null,"id":"1400725030689431553"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"定期检测，严禁超负荷使用。","children":null,"id":"1400725945135734786"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"制定岗位操作规程，定期组织培训。","children":null,"id":"1400725946184310785"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"立即切断电源，检查伤员全身情况，心跳停止时进行心肺复苏。同时拨打120急救电话，并送往医院。","children":null,"id":"1400725947669094402"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"按要求穿戴劳动防护用品。","children":null,"id":"1400725948445040642"}],"id":"1400725025916313602"}]
     * timestamp : 1622874886062
     */

    private Boolean success;
    private String message;
    private Integer code;
    private Long timestamp;
    private List<ResultDTO> result;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public List<ResultDTO> getResult() {
        return result;
    }

    public void setResult(List<ResultDTO> result) {
        this.result = result;
    }

    public static class ResultDTO {
        /**
         * itemName : 钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。
         * pid : 0
         * itemDesc : null
         * children : [{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"定期检测，严禁超负荷使用。","children":null,"id":"1400725027241713665"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"制定岗位操作规程，定期组织培训。","children":null,"id":"1400725028067991553"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"立即切断电源，检查伤员全身情况，心跳停止时进行心肺复苏。同时拨打120急救电话，并送往医院。","children":null,"id":"1400725028957184001"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"按要求穿戴劳动防护用品。","children":null,"id":"1400725030689431553"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"定期检测，严禁超负荷使用。","children":null,"id":"1400725945135734786"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"制定岗位操作规程，定期组织培训。","children":null,"id":"1400725946184310785"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"立即切断电源，检查伤员全身情况，心跳停止时进行心肺复苏。同时拨打120急救电话，并送往医院。","children":null,"id":"1400725947669094402"},{"itemName":"钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。","pid":"1400725025916313602","itemDesc":"按要求穿戴劳动防护用品。","children":null,"id":"1400725948445040642"}]
         * id : 1400725025916313602
         */

        private String itemName;
        private String pid;
        private Object itemDesc;
        private String id;
        private List<ChildrenDTO> children;
        private String isselect;

        public String getIsselect() {
            return isselect;
        }

        public void setIsselect(String isselect) {
            this.isselect = isselect;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public String getPid() {
            return pid;
        }

        public void setPid(String pid) {
            this.pid = pid;
        }

        public Object getItemDesc() {
            return itemDesc;
        }

        public void setItemDesc(Object itemDesc) {
            this.itemDesc = itemDesc;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public List<ChildrenDTO> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenDTO> children) {
            this.children = children;
        }

        public static class ChildrenDTO {
            /**
             * itemName : 钢丝绳是否断丝、断股，磨损严重；紧固件是否松动。
             * pid : 1400725025916313602
             * itemDesc : 定期检测，严禁超负荷使用。
             * children : null
             * id : 1400725027241713665
             */

            private String itemName;
            private String pid;
            private String itemDesc;
            private Object children;
            private String id;
            private Integer status;
            private List<String> itemDescList;

            public Integer getStatus() {
                return status;
            }

            public void setStatus(Integer status) {
                this.status = status;
            }

            public String getItemName() {
                return itemName;
            }

            public void setItemName(String itemName) {
                this.itemName = itemName;
            }

            public String getPid() {
                return pid;
            }

            public void setPid(String pid) {
                this.pid = pid;
            }

            public String getItemDesc() {
                return itemDesc;
            }

            public void setItemDesc(String itemDesc) {
                this.itemDesc = itemDesc;
            }

            public Object getChildren() {
                return children;
            }

            public void setChildren(Object children) {
                this.children = children;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public List<String> getItemDescList() {
                return itemDescList;
            }

            public void setItemDescList(List<String> itemDescList) {
                this.itemDescList = itemDescList;
            }
        }
    }
}
